package cn.topcodes.tcsf.admin.jms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ErrorHandler;

/**
 * Created by Unicorn on 2018/6/7.
 */
public class JmsErrorHandler implements ErrorHandler {

    private Logger logger = LoggerFactory.getLogger(JmsErrorHandler.class);

    @Override
    public void handleError(Throwable throwable) {
        logger.error("Jms发生错误", throwable);
    }
}
